package com.wenhai.spring.boot.domain;

import com.wenhai.spring.boot.validation.MyValidator;

import javax.validation.constraints.NotBlank;

public class User {

    @MyValidator(message = "不能大于100", groups = Update.class)
    private Long id;
    @NotBlank(groups = Save.class, message = "账号不能为空")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


}
